{if $upload_type eq "link"}

    {include file="link_locker.tpl.php"}

{else}

{include file="download_header.tpl.php"}


<div class="content" style="background: url('{$SITE_URL}images/download_bg.jpg') repeat-x top center;">

	<div class="wrapper">


		<div class="h40"></div>

		<div class="boxFull">




<!--File Download Box-->

<a href="{$SITE_URL}report.php?file={$fileCode}" target="_blank" style="font-size: 13px; color: #555555; float: right;">Report File</a>

<center><h3>{$pagetitle}</h3></center>

		<table cellspacing="0" cellpadding="0" class="table">
		<tr><td>File Name</td><td>{$pagetitle}</td></tr>
		<tr><td>File Size</td><td>{if $upload_type ne "link"}{$filesize}{/if}</td></tr>
		<tr><td>Uploaded On</td><td>{$date}</td></tr>

		{if $desc ne ""}<tr><td>Description</td><td>{$desc}</td></tr>{/if}
		{if $upload_type eq "link" && $link_desc ne ""}<tr><td>Description</td><td>{$link_desc}</td></tr>{/if}
		</table>

    
<div class="h30"></div>

<center>

<a class="button" style="color: #ffffff; text-decoration: none; padding: 5px 20px; font-size: 20px;" href="#" id="reg_download"><img src="{$SITE_URL}images/i_download_free.png" />&nbsp; Free Download</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<a class="buttonorange" style="color: #ffffff; text-decoration: none; padding: 5px 20px; font-size: 20px;" href="#" id="prem_download"><img src="{$SITE_URL}images/i_download_pre.png" />&nbsp; Premium Download</a>

</center>

<script type="text/javascript">
{literal}
$(document).ready(function(){

$('#cboxClose').remove();

$('#reg_download').colorbox({inline:true, href:"#offersSection2", width: 576, height:374,  escKey: false, overlayClose:false, scrolling: false});

$('#prem_download').colorbox({inline:true, href:"#premium_download", width: 600, height:400, escKey: false, overlayClose:false});
	
});
{/literal}
</script>

<!--End File Download Box-->



<div class="h30"></div>


<div class="dottedline"></div>


<!--Premium heading-->
<h3>Buy Premium</h3>
Register now as a Premium User and experience direct downloads with no wait time, advertisements, or surveys! Accounts take less than a minute to setup and are easy to buy through PayPal!
<!--End Premium Heading-->

<div class="h20"></div>



<div style="height: 140px; width: 60px; float: left;"></div>
{if $packages ne ""}
{foreach item=package from=$packages}

<!--Pack-->
	<div class="boxDailyRank">

		<div class="boxTitle" style="text-align: center; font-weight: bold;">{$package.name|@ucfirst}</div>
		<div class="dottedRow" style="height: 64px; line-height: 64px; text-align: center; color: #555555; font-size: 40px;">${$package.dollars}.{$package.cents}</font></div>
		<div class="noneRow2" style="text-align: center;">
			<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
			<input type="hidden" name="cmd" value="_s-xclick" />
			<input type="hidden" name="hosted_button_id" value="{$package.btn_id}" />
			<input type='hidden' name='rm' value='2' />
			<input type='hidden' name='no_note' value='1' />
			<input type='hidden' name='upload' value='1' />
			 <input type='hidden' name='invoice' value='{$fileCode}-{$stringTime}' />
			<input type='hidden' name='notify_url' value='{$SITE_URL}setup_premium.php' />
			<input type='hidden' name='return' value='{$SITE_URL}premium.php' />
			<input type='hidden' name='cancel_return' value='{$SITE_URL}download.php' />
			<input type="submit" class="buttonsmall" value="Buy Now!" name="submit" alt="PayPal - The safer, easier way to pay online!" />
			<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
			</form>
		</div>

	</div>

	<div style="height: 140px; width: 40px; float: left;"></div>
<!--End Pack-->


<!--End Package-->
{/foreach}
{/if}



<div class="h30"></div>



{if $fcomments ne ""}

<div class="dottedline"></div>

<div class="h20"></div>

<b>File Testimonials</b>

<div class="h20"></div>

{foreach item=fcomment from=$fcomments}

<div class="greyborder" style="margin-bottom: 10px; padding: 5px;">
{$fcomment.comment} - <font color="#00a0c2">{$fcomment.name}</font>
</div>

{/foreach}


{/if}









<!--Premium Login-->
<div style="display:none">
<div id="premium_download">

<div class="offerp_box">
<div class="top"><p style="float:left" id="pfti">&raquo; {if $premium_forgot eq 1}Premium Account Password Reset{else}Premium Account Login{/if}</p><p style="float:right; padding-right:20px;"><a href="javascript:void(0)" onclick="$.colorbox.close()" style="color:#ffffff;">close</a></p></div>

<div class="mid">
<div id="premium_login_form"  {if $premium_forgot eq 1} style="display:none"{/if}>
<div class="offers_heading">Login to your premium account and download the file right away</div>
<form action="{$SITE_URL}file/{$fileCode}" method="post">
<input type="hidden" name="premium_login" value="login" />
<br />
{if $login_error ne ""}
<div class="inline_reg_error"><center><img src="{$SITE_URL}templates/images/cross.gif" style="vertical-align:top" alt="" /> {$login_error}</center></div>
{/if}
{if $success_msg ne ""}
<div class="inline_reg_success"><center><img src="{$SITE_URL}templates/images/tick.gif" style="vertical-align:top" alt="" /> {$success_msg}</center></div>
{/if}
<table cellspacing="10" style="width:450px; margin:5px auto;">
<tr><td style="text-align:right">Email Address:</td><td><input type="text" name="email_address" maxlength="55"  class="prem_txt_field" /></td></tr>
<tr><td style="text-align:right">Password:</td><td><input type="password" name="password" class="prem_txt_field" /></td></tr>
<tr><td colspan="2" style="text-align:center"><input type="submit" class="buttonsmall" name="login_btn1" value="Login" onclick="$('#prem_download').colorbox.close();" /> | <a href="#" id="forgot_p">forgot password?</a></td></tr>

</table>
</form>


</div>

<div id="premium_forgot_form" {if $premium_forgot ne 1} style="display:none"{/if}>
<div class="offers_heading">Enter your premium account email address you want to reset password for.</div>
<form action="{$SITE_URL}file/{$fileCode}" method="post">
<input type="hidden" name="premium_forgot" value="forgot" />

<br />
{if $login_error ne ""}
<div class="inline_reg_error"><center><img src="{$SITE_URL}templates/images/cross.gif" style="vertical-align:top" alt="" /> {$login_error}</center></div>
{/if}
<table cellspacing="10" style="width:450px; margin:5px auto;">
<tr><td style="text-align:right">Email Address:</td><td><input type="text" name="email" maxlength="55"  class="prem_txt_field" /></td></tr>
<tr><td colspan="2" style="text-align:center"><input type="submit" class="buttonsmall" name="forgot_btn1" value="Send Password" onclick="$('#prem_download').colorbox.close();" /> | <a href="#" id="backLogin">Back</a></td></tr>
</table>
</form>


</div>






</div>

<script type="text/javascript">
{literal}

$(document).ready(function(){
	
	
	//tooltips
	$('.offerDiv').tipsy({gravity: 's'});	
	
	
	$('.package_box').hover(function(){ $(this).fadeTo('normal', 0.80, function(){}) }, function(){ $(this).fadeTo('normal', 1, function(){}) });
	
	$("#forgot_p").click(function(e){
	
	e.preventDefault();
	$("#premium_login_form").hide('fast');	
	$("#premium_forgot_form").show('fast');	
	$("#pfti").html("&raquo; Premium Account Password Rest");
		
	});
	
	$("#backLogin").click(function(e){
	
	e.preventDefault();
	$("#premium_forgot_form").hide('fast');	
	$("#premium_login_form").show('fast');	
	$("#pfti").html("&raquo; Premium Account Login");	
	});	
	
	

	
});

{/literal}
</script>




<div class="bottom">&nbsp;</div>



</div>



</div>
</div>
<!--End Premium Login-->




<!--Surveys-->
<div style="display:none">
<div id="offersSection2" >


<iframe src="{$SITE_URL}offers.php?f={$fileCode}&r={$randomHash}" style="border:0; width:570px; height:370px; overflow:hidden;  " scrolling="no"></iframe>



</div>
</div>
<!--End Surveys-->



{if $login_error ne "" || $success_msg ne ""}
<script type="text/javascript">
{literal}
$.colorbox({inline:true, href:"#premium_download", width: 600, height:400, escKey: false, overlayClose:false});
{/literal}
</script>
{/if}




</div>



		</div>

		<div class="h40"></div>

	</div>

</div>



{include file="download_footer.tpl.php"}

{/if}